package com.learm.timer;

import java.util.Timer;

public class TimerSchedule {
    public static void main(String[] args){
        Timer timer = new Timer();
        timer.schedule(new MyTask(),0,5*60*1000);// 5分钟执行一次
    }
}
